<?php include '_init_.php';?>
<?php
$act = isset($_REQUEST['act'])?$_REQUEST['act']:'';
if($act == 'setdate')
{
	AppMain::setCurrentDate($_REQUEST['value']);
}
$dtMainIndex = new DataTable(constant('DB_TABLE_ORDER_INDEX_MAIN'));
?>
<?php include 'page_header.php';?>
<div id="main"><!-- start #main //-->

<div id="tita"><!-- start subscribe -->
  <div class="tita-1">
    <h3>預約資訊</h3>
  </div>
  <div class="tita-2"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime(AppMain::getCurrentDate()));?></div>
  </div>
  <div class="clearfix" id="maina"><!-- start #maina //-->
 <?php
      	$condition = "`status`='new' and `photo_time` = '0000-00-00 00:00:00' and TO_DAYS(`created`) = TO_DAYS(now())";
		$orderBy = '-created';
		$data_list = $dtMainIndex->get_list($condition,$orderBy);
      ?>
       <?php foreach($data_list as $tmpData):?>
  	<div class="maina-1">
    <ul>
      <li class="maina-1a">
        姓名<img width="21" height="12" src="images/line3.gif"><a href="cos.php?id=<?php echo $tmpData['manager_id'];?>"><?php echo $tmpData['c_name'];?></a></li>
      <li class="maina-1a">
        生日<img width="21" height="12" src="images/line3.gif"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime($tmpData['c_birthday']));?>
      </li>
      <li class="maina-1a">
        電話<img width="21" height="12" src="images/line3.gif">(<?php echo $tmpData['c_tel_part_one'];?>)<?php echo $tmpData['c_tel_part_two'];?>
      </li>
      <li class="maina-1a">
       手機<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_mobile'];?>
      </li>
      <li class="maina-1b">
        E - Mail<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_email'];?>
      </li>
      <li class="maina-1b">
       地址<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_address_one'];?><?php echo $tmpData['c_address_two'];?><?php echo $tmpData['c_address_three'];?>
      </li>
    </ul>
    </div>
    <?php endforeach;?>
  </div><!-- start subscribe -->
  
  <div id="tite"> <!-- start photo -->
  <div class="tita-1">
    <h3>拍照資訊</h3>
  </div>
  <div class="tita-2"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime(AppMain::getCurrentDate()));?></div>
  </div>
  <div class="clearfix" id="mainb"><!-- start #mainb //-->
  <?php
      	$condition = "`status`='new' and TO_DAYS(`photo_time`) = TO_DAYS(now())";
		$orderBy = '-created';
		$data_list = $dtMainIndex->get_list($condition,$orderBy);
      ?>
       <?php foreach($data_list as $tmpData):?>
  	<div class="maina-1">
    <ul>
      <li class="maina-1a">
        姓名<img width="21" height="12" src="images/line3.gif"><a href="cos.php?id=<?php echo $tmpData['manager_id'];?>"><?php echo $tmpData['c_name'];?></a></li>
      <li class="maina-1a">
        生日<img width="21" height="12" src="images/line3.gif"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime($tmpData['c_birthday']));?>
      </li>
      <li class="maina-1a">
        電話<img width="21" height="12" src="images/line3.gif">(<?php echo $tmpData['c_tel_part_one'];?>)<?php echo $tmpData['c_tel_part_two'];?>
      </li>
      <li class="maina-1a">
       手機<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_mobile'];?>
      </li>
      <li class="maina-1b">
        E - Mail<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_email'];?>
      </li>
      <li class="maina-1b">
       地址<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_address_one'];?><?php echo $tmpData['c_address_two'];?><?php echo $tmpData['c_address_three'];?>
      </li>
    </ul>
    </div>
    <?php endforeach;?>
  </div><!-- start photo -->
 
 <div id="titd"><!-- start proof -->
  <div class="tita-1">
    <h3>看樣資訊</h3>
  </div>
  <div class="tita-2"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime(AppMain::getCurrentDate()));?></div>
  </div>
  <div class="clearfix" id="maind"><!-- start #maind //-->
 <?php
      	$condition = "`status`='new' and TO_DAYS(`proof_time`) = TO_DAYS(now())";
		$orderBy = '-created';
		$data_list = $dtMainIndex->get_list($condition,$orderBy);
      ?>
       <?php foreach($data_list as $tmpData):?>
  	<div class="maina-1">
    <ul>
      <li class="maina-1a">
        姓名<img width="21" height="12" src="images/line3.gif"><a href="cos.php?id=<?php echo $tmpData['manager_id'];?>"><?php echo $tmpData['c_name'];?></a></li>
      <li class="maina-1a">
        生日<img width="21" height="12" src="images/line3.gif"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime($tmpData['c_birthday']));?>
      </li>
      <li class="maina-1a">
        電話<img width="21" height="12" src="images/line3.gif">(<?php echo $tmpData['c_tel_part_one'];?>)<?php echo $tmpData['c_tel_part_two'];?>
      </li>
      <li class="maina-1a">
       手機<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_mobile'];?>
      </li>
      <li class="maina-1b">
        E - Mail<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_email'];?>
      </li>
      <li class="maina-1b">
       地址<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_address_one'];?><?php echo $tmpData['c_address_two'];?><?php echo $tmpData['c_address_three'];?>
      </li>
    </ul>
    </div>
    <?php endforeach;?>
</div><!-- end photo -->

<div id="titd"> <!-- start pickup -->
  <div class="tita-1">
    <h3>取件資訊</h3>
  </div>
  <div class="tita-2"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime(AppMain::getCurrentDate()));?></div>
  </div>
  <div class="clearfix" id="maind"><!-- start #maind //-->
 <?php
      	$condition = "`status`='new' and TO_DAYS(`pickup_time`) = TO_DAYS(now())";
		$orderBy = '-created';
		$data_list = $dtMainIndex->get_list($condition,$orderBy);
      ?>
       <?php foreach($data_list as $tmpData):?>
  	<div class="maina-1">
    <ul>
      <li class="maina-1a">
        姓名<img width="21" height="12" src="images/line3.gif"><a href="cos.php?id=<?php echo $tmpData['manager_id'];?>"><?php echo $tmpData['c_name'];?></a></li>
      <li class="maina-1a">
        生日<img width="21" height="12" src="images/line3.gif"><?php echo date(constant('WEBSITE_DATE_FORMATE'),strtotime($tmpData['c_birthday']));?>
      </li>
      <li class="maina-1a">
        電話<img width="21" height="12" src="images/line3.gif">(<?php echo $tmpData['c_tel_part_one'];?>)<?php echo $tmpData['c_tel_part_two'];?>
      </li>
      <li class="maina-1a">
       手機<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_mobile'];?>
      </li>
      <li class="maina-1b">
        E - Mail<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_email'];?>
      </li>
      <li class="maina-1b">
       地址<img width="21" height="12" src="images/line3.gif"><?php echo $tmpData['c_address_one'];?><?php echo $tmpData['c_address_two'];?><?php echo $tmpData['c_address_three'];?>
      </li>
    </ul>
    </div>
    <?php endforeach;?>
</div><!-- end pickup -->

  
</div>
<?php include 'page_footer.php';?>